package com.business.user.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 关注表 实体类
 * @author chenjiehong
 * @date 2019-11-29 14:28:27
 * @since 1.0
 */
@TableName(value = "user_concern")
public class UserConcern {


    // columns START


	@TableId(value = "id",type=IdType.AUTO)
	private Integer id;


	@TableField(value = "user_id")
	private Integer userId; 

	@TableField(value = "concern_user_id")
	private Integer concernUserId; 

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time")
	private Date createTime; 

	/**
	 * 是否互相关注
	 */
	@TableField(value = "is_each_other")
	private Integer isEachOther;
	// columns END

	public Integer getUserId() {
		return userId;
	}

    public void setUserId(Integer userId) {
    	this.userId = userId;
    }
	public Integer getConcernUserId() {
		return concernUserId;
	}

    public void setConcernUserId(Integer concernUserId) {
    	this.concernUserId = concernUserId;
    }
	public Date getCreateTime() {
		return createTime;
	}

    public void setCreateTime(Date createTime) {
    	this.createTime = createTime;
    }
	public Integer getIsEachOther() {
		return isEachOther;
	}

    public void setIsEachOther(int isEachOther) {
    	this.isEachOther = isEachOther;
    }

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setIsEachOther(Integer isEachOther) {
		this.isEachOther = isEachOther;
	}

	@Override
	public String toString() {
		String log = ""; 
		log += "[userId:" + getUserId() + "]";
		log += "[concernUserId:" + getConcernUserId() + "]";
		log += "[createTime:" + getCreateTime() + "]";
		log += "[isEachOther:" + getIsEachOther() + "]";
		return log;
	}
}